package com.lagou.dao;

import com.lagou.domain.PromotionAd;
import com.lagou.domain.PromotionAdVo;

import java.util.List;

public interface PromotionAdMapper {

    /**
     * 分页查询广告信息
     */
    public List<PromotionAd> findAllPromotionAdByPage();

    /**
     * 广告动态上下线
     * @param promotionAd
     */
    public void updatePromotionAdStatus(PromotionAd promotionAd);

    /**
     * 新增广告信息
     * @param promotionAd
     */
    public void savePromotionAd(PromotionAd promotionAd);

    /**
     * 修改广告信息
     * @param promotionAd
     */
    public void updatePromotionAd(PromotionAd promotionAd);

    /**
     * 根据id查找广告信息, 用户回显
     * @param id
     * @return
     */
    public PromotionAd findPromotionAdById(Integer id);
}
